public class test {
    public static void main(String[] args) {
    int n=1;
    int a=0;
    while(n<=100) {
       if(n%3==0&&n%5==0){
           a=n;
           n++;}
           else{
               continue;
           }
           System.out.println(a);
    }
    }
}